package com.founder.chd_daily_query.entity.query;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.istack.Nullable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "LAND_COAL_SENDPLAN")
public class LandCoalSendplanEntity {

    @Id
    @Column(name = "PURCHASE_SALE_PLAN_ID")
    private String purchaseSalePlanId;

    @Column(name = "DEMAND_PLAN_ID")
    private String demandPlanId;


    @Column(name = "DEMAND_SUPPLIER_ID")
    private String demandSupplierId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "DEMAND_PLAN_DATE")
    private Date demandPlanDate;

    @Column(name = "SUPPLY_PROVINCE_ID")
    private String supplyProvinceId;

    @Column(name = "POWERSTATION_ID")
    private String powerstationId;

    @Column(name = "PLAN_ATTRIBUTE_TYPE")
    private String planAttributeType;

    @Column(name = "SUPPLY_AREA_NAME")
    private String supplyAreaName;

    @Nullable
    @Column(name = "PLAN_PURCHASE_QUANTITY")
    private Float planPurchaseQuantity;

    @Column(name = "QNET")
    private String qnet;

    @Nullable
    @Column(name = "NATURAL_COAL_UNITPRICE")
    private Float naturalCoalUnitprice;

    @Nullable
    @Column(name = "STANDARD_COAL_UNITPRICE")
    private Float standardCoalUnitprice;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "LAST_UPDATE_DATE")
    private String lastUpdateDate;

    public String getPurchaseSalePlanId() {
        return purchaseSalePlanId;
    }

    public void setPurchaseSalePlanId(String purchaseSalePlanId) {
        this.purchaseSalePlanId = purchaseSalePlanId;
    }

    public String getDemandPlanId() {
        return demandPlanId;
    }

    public void setDemandPlanId(String demandPlanId) {
        this.demandPlanId = demandPlanId;
    }

    public String getDemandSupplierId() {
        return demandSupplierId;
    }

    public void setDemandSupplierId(String demandSupplierId) {
        this.demandSupplierId = demandSupplierId;
    }

    public Date getDemandPlanDate() {
        return demandPlanDate;
    }

    public void setDemandPlanDate(Date demandPlanDate) {
        this.demandPlanDate = demandPlanDate;
    }

    public String getSupplyProvinceId() {
        return supplyProvinceId;
    }

    public void setSupplyProvinceId(String supplyProvinceId) {
        this.supplyProvinceId = supplyProvinceId;
    }

    public String getPowerstationId() {
        return powerstationId;
    }

    public void setPowerstationId(String powerstationId) {
        this.powerstationId = powerstationId;
    }

    public String getPlanAttributeType() {
        return planAttributeType;
    }

    public void setPlanAttributeType(String planAttributeType) {
        this.planAttributeType = planAttributeType;
    }

    public String getSupplyAreaName() {
        return supplyAreaName;
    }

    public void setSupplyAreaName(String supplyAreaName) {
        this.supplyAreaName = supplyAreaName;
    }

    public Float getPlanPurchaseQuantity() {
        return planPurchaseQuantity;
    }

    public void setPlanPurchaseQuantity(Float planPurchaseQuantity) {
        this.planPurchaseQuantity = planPurchaseQuantity;
    }

    public String getQnet() {
        return qnet;
    }

    public void setQnet(String qnet) {
        this.qnet = qnet;
    }

    public Float getNaturalCoalUnitprice() {
        return naturalCoalUnitprice;
    }

    public void setNaturalCoalUnitprice(Float naturalCoalUnitprice) {
        this.naturalCoalUnitprice = naturalCoalUnitprice;
    }

    public Float getStandardCoalUnitprice() {
        return standardCoalUnitprice;
    }

    public void setStandardCoalUnitprice(Float standardCoalUnitprice) {
        this.standardCoalUnitprice = standardCoalUnitprice;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(String lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    @Override
    public String toString() {
        return "LandCoalSendplanEntity{" +
                "purchaseSalePlanId='" + purchaseSalePlanId + '\'' +
                ", demandPlanId='" + demandPlanId + '\'' +
                ", demandSupplierId='" + demandSupplierId + '\'' +
                ", demandPlanDate=" + demandPlanDate +
                ", supplyProvinceId='" + supplyProvinceId + '\'' +
                ", powerstationId='" + powerstationId + '\'' +
                ", planAttributeType='" + planAttributeType + '\'' +
                ", supplyAreaName='" + supplyAreaName + '\'' +
                ", planPurchaseQuantity=" + planPurchaseQuantity +
                ", qnet='" + qnet + '\'' +
                ", naturalCoalUnitprice=" + naturalCoalUnitprice +
                ", standardCoalUnitprice=" + standardCoalUnitprice +
                ", createDate=" + createDate +
                ", lastUpdateDate='" + lastUpdateDate + '\'' +
                '}';
    }
}
